// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 循环寿命评估曲线 GET /health/cycle */
export async function cycleLifeControllerGetCycleLife(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.cycleLifeControllerGetCycleLifeParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultCycleLifeVO>(`${apiPrefix}/health/cycle`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 循环寿命评估列表 GET /health/cycle/page */
export async function cycleLifeControllerGetCycleLifeRow(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.cycleLifeControllerGetCycleLifeRowParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationCycleLifeRow>(`${apiPrefix}/health/cycle/page`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
